package com.sctvcloud.qingchuan.beans;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 子专题数据
 */
public class TopicSubBean implements Parcelable {
    private String specialId;
    private String subTopicTitle;
    private String subTopicUrl;

    public TopicSubBean(String specialId, String title, String url) {
        this.specialId = specialId;
        this.subTopicTitle = title;
        this.subTopicUrl = url;
    }

    private TopicSubBean(Parcel in) {
        specialId = in.readString();
        subTopicTitle = in.readString();
        subTopicUrl = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(specialId);
        dest.writeString(subTopicTitle);
        dest.writeString(subTopicUrl);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<TopicSubBean> CREATOR = new Creator<TopicSubBean>() {
        @Override
        public TopicSubBean createFromParcel(Parcel in) {
            return new TopicSubBean(in);
        }

        @Override
        public TopicSubBean[] newArray(int size) {
            return new TopicSubBean[size];
        }
    };

    public String getSpecialId() {
        return specialId;
    }

    public void setSpecialId(String specialId) {
        this.specialId = specialId;
    }

    public String getSubTopicTitle() {
        return subTopicTitle;
    }

    public void setSubTopicTitle(String subTopicTitle) {
        this.subTopicTitle = subTopicTitle;
    }

    public String getSubTopicUrl() {
        return subTopicUrl;
    }

    public void setSubTopicUrl(String subTopicUrl) {
        this.subTopicUrl = subTopicUrl;
    }
}
